﻿@using MakeWeekConcerts.Models
@using Microsoft.AspNet.Mvc.Facebook.Models
@using Microsoft.AspNet.Mvc.Facebook
@model IList<FacebookLike>

<table class="table">
    @foreach (var like in Model)
    {
        <tr>
            <td>
                <label>@like.Name</label>
            </td>
            <td>
                <label>@like.Category</label>
            </td>
            @{ var shows = DataLoader.ConcertsFor(like.Name); }
            @if (shows.Any())
            {
                <td><ul>
                @foreach (var show in shows)
                {
                    <li>@show.Name: @show.EventTimeStr at @show.EventLocationName</li>
                }
                </ul></td>
            } else {
                <td>No shows coming.</td>
            }
            @{ var similar = DataLoader.GetSimilar(like.Name); }
            <td>Similar: @string.Join(", ", similar)</td>
        </tr>
    }
</table>